<div class="ibox">
	<div class="row searchLineWrap">
		<form class="form-horizontal" id="projectList" name="projectListForm" action="${cxt!}/admin/project/projectList" method="post">
			<div class="col-md-12">
				<!-- 第一行 -->
				<div class="row">
					
					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.projectName"]}:</label>
							<div class="col-md-8">
								<input name="project.l_projectname" placeholder="${_res['project.projectName']}" class="form-control"  value="${paramMap['project.l_projectname']}">
							</div>
						</div>
					</div>
					
					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.developer"]}</label>
							<div class="col-md-8">
								<#dict type="select" class="form-control" i18n="N" name="project.f_developer" table="customer_developer" filedName="companyname" filedValue="id" value="${paramMap['project.f_developer']}" />
							</div>
						</div>
					</div>
					
					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["property.type"]}</label>
							<div class="col-md-8">
								<#dict type="select" class="form-control" i18n="N" dictCode="PROJECT_TYPE" name="project.f_projecttype"  value="${paramMap['project.f_projecttype']}" />
							</div>
						</div>
					</div>
					
					
				</div>
				<!-- 第二行 -->
				<div class="row">
				
					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.constructionCommenceStart"]}:</label>
							<div class="col-md-8">
									<input  name="project.gt_constructioncommence" placeholder="${_res['system.startdate']}" class="form-control layer-date laydate-icon" onclick="laydate()" value="${paramMap['project.gt_constructioncommence']}">
							</div>
						</div>
					</div>

					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.constructionCommenceEnd"]}:</label>
							<div class="col-md-8">
									<input name="project.le_constructioncommence" placeholder="${_res['system.enddate']}" class="form-control layer-date laydate-icon" onclick="laydate()"  value="${paramMap['project.le_constructioncommence']}">
							</div>
						</div>
					</div>
					
					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.sale.Tel"]}</label>
							<div class="col-md-8">
								<input type="text"  class="form-control" name="projectDetail.l_saletel" value="${paramMap['projectDetail.l_saletel']}">
							</div>
						</div>
					</div>
					
					
				</div>
				
				<div class="row">
				
						<div class="col-md-4">
							<div class="form-group">
								<label class="col-md-4 control-label">${_res["project.settlementStart"]}:</label>
								<div class="col-md-8">
										<input  name="project.gt_estsettlement" placeholder="${_res['system.startdate']}" class="form-control layer-date laydate-icon" onclick="laydate()" value="${paramMap['project.gt_estsettlement']}">
								</div>
							</div>
						</div>

					<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.settlementEnd"]}:</label>
							<div class="col-md-8">
									<input name="project.le_estsettlement" placeholder="${_res['system.enddate']}" class="form-control layer-date laydate-icon" onclick="laydate()"  value="${paramMap['project.le_estsettlement']}">
							</div>
						</div>
					</div>
					
						<div class="col-md-4">
							<div class="form-group">
								<label class="col-md-4 control-label">${_res["project.contractor"]}</label>
								<div class="col-md-8">
									<input type="text" name="project.l_builder" class="form-control" value="${paramMap['project.l_builder']}"/>
								</div>
							</div>
						</div>
						
						
					</div>
				</div>	
				
				<div class="row">
					<div class="col-md-12">
						<div class="col-md-4">
							<div class="form-group">
								<label class="col-md-4 control-label">${_res["project.daapproval"]}</label>
								<div class="col-md-8">
									<#dict type="select" name="project.f_daapproval" dictCode="DA_APPROVAL_STATUS" value="${paramMap['project.f_daapproval']}"/>
								</div>
							</div>
						</div>
						
						<div class="col-md-4">
							<div class="form-group">
								<label class="col-md-4 control-label">${_res["agency.review.reviewStatus"]}</label>
								<div class="col-md-8">
									<#dict type="select" dictCode="REVIEW_STATUS" name="project.f_status" value="${paramMap['project.f_status']}" />
								</div>
							</div>
						</div>
						
						<div class="col-md-4">
						<div class="form-group">
							<label class="col-md-4 control-label">${_res["project.sale.RecommendationRank"]}</label>
							<div class="col-md-8">
								<input type="text"  class="form-control" name="project.l_recommendationorder" value="${paramMap['project.l_recommendationorder']}">
							</div>
						</div>
					</div>
				</div>
				
				<!-- 第三行 -->
				<div class="row">
					<div class="col-md-12">
						<div class="col-md-12">
							<div class="form-group">
								<div class="col-md-12">
									<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','projectList')">
					          			<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
					         		</button>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<div class="ibox row searchLineWrap">
	<div class="float-e-margins">
		<button type="button" class="btn btn-primary pull-left" onclick="ajaxContent('/admin/project/addProjectLoadDeveloper');">
			<i class="m-l-sm m-r-xs"></i>${_res["project.projectTitle"]}
		</button>
	</div>
	<table class="table table-bordered table-hover dataTables-example">
		<thead>
			<tr>
				<th>${_res["project.projectName"]}</th>
				<th>${_res["project.projectType"]}</th>
				<th>${_res["project.developer"]}</th>
				<th>${_res["project.contractor"]}</th>
				<th>${_res["project.place"]}</th>
				<th style="width: 23%;">${_res["project.introduction"]}</th>
				<th>${_res["project.sale.RecommendationRank"]}</th>
				<th>${_res["project.status"]}</th>
				<th>${_res["system.operator"]}</th>
			</tr>
		</thead>
		<tbody>
			
			<% 
				for(record in projectList){
			%>
			
			<tr>
				<td style="background-color: rgb(255, 255, 255);">
					<span onclick="listTable.edit(this, 'user_name', 2);" style="border: medium none;">${record.projectname!}</span>
				</td>
				<td style="background-color: rgb(255, 255, 255);"><#dict type="lable" dictCode="PROJECT_TYPE" value="${record.projecttype!}"/></td>
				<td style="background-color: rgb(255, 255, 255);"><#dict type="lable" i18n="N" table="customer_developer" filedName="companyname" filedValue="id" value="${record.developer!}"/></td>
				<td style="background-color: rgb(255, 255, 255);">${record.builder!}</td>
				<td style="background-color: rgb(255, 255, 255);"><#dict type="lable" table="country_region" filedName="name" filedValue="id" value="${record.country!}"/>/${record.city!}</td>
				<td style="background-color: rgb(255, 255, 255);">${record.introduction!}</td>
				<td style="background-color: rgb(255, 255, 255);">${record.recommendationorder!}</td>
				<td style="background-color: rgb(255, 255, 255);"><#dict type="lable" dictCode="REVIEW_STATUS" value="${record.status!}"/></td>
				<td style="background-color: rgb(255, 255, 255);">
					<%if(hasPrivilegeUrl("projectDetail")){%>
					<a title="view" href="javascript:void(0)" onClick="ajaxContent('/admin/project/projectDetail/${record.id!}');">${_res["user.review.review"]}</a>
					<%}%>
					<%if(hasPrivilegeUrl("preReviewProject")){
						if(record.status=='P'){
					%>
					<a title="review" href="javascript:void(0)" onClick="ajaxContent('/admin/project/preReviewProject/${record.id!}');">${_res["user.review.check"]}</a>
					<%}}%>
					<%if(hasPrivilegeUrl("editProject")){
					%>
					<a title="edit" href="javascript:void(0)" onClick="ajaxContent('/admin/project/editProject/${record.id!}');">${_res["system.edit"]}</a>
					<%}%>
					<%if(hasPrivilegeUrl("updateSalestauts")){
						if(record.salestatus=='0'&&record.status=='A'){
					%>
					<a title="sale" href="javascript:void(0)" onclick="ajaxContentConfirm('/admin/project/updateSaleStatus/${record.id!}');">${_res["project.saleStatus"]}</a>
					<%}}%>
				</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="projectList" /></div>
	<#nav/>
</div>

